-- GENERATED SPELL FOR [Blackwood Pathfinder] --


function spell0_2167(pUnit, Event) --@Faerie Fire,n/a--
pUnit:FullCastSpellOnTarget(6950,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2167', 2000, 1)
end

function spell1_2167(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_2167', 620, 1)
end

function Sorts_2167(pUnit, Event)
local choix_sorts_2167 = math.random(0, 1)
if choix_sorts_2167 == 0 then
pUnit:RegisterEvent('spell0_2167', 1, 1)
end
if choix_sorts_2167 == 1 then
pUnit:RegisterEvent('spell1_2167', 1, 1)
end
end

function mob2167_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2167', math.random(1500, 3000), 1)
end

function mob2167_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2167_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2167_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2167, 1, 'mob2167_Action')
RegisterUnitEvent(2167, 2, 'mob2167_Leave')
RegisterUnitEvent(2167, 3, 'mob2167_Kill')
RegisterUnitEvent(2167, 4, 'mob2167_Die')
